--创建序列，实现自增长
CREATE SEQUENCE myseq;
--创建表测试
CREATE TABLE testseq(
	next NUMBER,
	curr NUMBER
);
--插入数据测试
INSERT INTO testseq(next,curr) VALUES(BABYSUN_SEQ.nextVal,BABYSUN_SEQ.currVal);

INSERT INTO TESTSEQ(next,CURR) VALUES(DEFAULT'Hello') ;

CREATE TABLE testseq1(
	next NUMBER,
	curr NUMBER
);
--插入数据测试
INSERT INTO testseq1(next,curr) VALUES(BABYSUN_SEQ.nextVal,BABYSUN_SEQ.currVal);



/*********************************************/
--随机函数
select dbms_random.string('a',2) value from dual;